import request from '@/utils/request'

const user = {
  getToken(data) {
    return request.get('/pet/auth/getToken', data)
  },
  authCodePhone(data) {
    return request.post('/pet/auth/code/phone', data)
  },
  registerByPhone(data) {
    return request.post('/pet/auth/registerByPhone', data)
  },
  login(data) {
    return request.post('/pet/auth/login', data)
  },
  logout(data) {
    return request.get('/pet/auth/logout', data)
  },
  getUserInfo(data) {
    return request.post('/pet/auth/getLoginUserInfo', data)
  }
}

export default user
